* {
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

ul,
li {
    list-style: none;
}

div {
    width: 400px;
    height: 180px;
    background-color: rgb(241, 196, 137);
    margin: 0 auto;
    margin-top: 10%;
    display: flex;
    position: relative;
}

#nav {
    width: 80px;
    display: flex;
    z-index: 1;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%);
}

#nav>li {
    width: 10px;
    height: 10px;
    background-color: aliceblue;
    border-radius: 50%;
    display: flex;
    margin: 0 5px;
}

#img>li>img {
    width: 100%;
    height: 100%;
}

div>#nav>.active {
    background-color: aquamarine;
}

#img {
    width: 400px;
    height: 180px;
    background-color: rgb(205, 245, 255);
    position: relative;
    overflow: hidden;
}

#img>.imgbox {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: calc(400px * 4);
    height: 180px;
    position: absolute;
    left: 0px;
    top: 0px;
    margin: 0 !important;
}

#img>.imgbox>li {
    width: 400px;
    height: 180px;
    background-color: aquamarine;
}

#img>.imgbox>li>img {
    width: 100%;
    height: 100%;
}